Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle cyclical -rs in requirements.txt #366

Merged
merged 1 commit into from
May 5, 2023

Conversation

robotdana
Copy link
Contributor

Ported from G-Rath/osv-detector#191

Note that this is not actually supported by pip itself, but doing so actually optimizes the parser a bit anyway by only reading each file exactly once regardless of how often it is required

fixes: #354

@google-cla
Copy link

google-cla bot commented May 4, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link
Collaborator

@G-Rath G-Rath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like all the empty newlines got dropped in the cherry-pick - could you restore those? otherwise looks good!

@robotdana robotdana force-pushed the handle-cyclical-r branch from 07ba100 to 19af052 Compare May 5, 2023 00:55
Ported from G-Rath/osv-detector#191

Note that this is not actually supported by `pip` itself, but doing so
actually optimizes the parser a bit anyway by only reading each file
exactly once regardless of how often it is required

fixes: google#354

Co-authored-by: Gareth Jones <[email protected]>
@robotdana robotdana force-pushed the handle-cyclical-r branch from 19af052 to 0cd0f76 Compare May 5, 2023 00:56
@oliverchang oliverchang requested a review from another-rex May 5, 2023 00:59
Copy link
Collaborator

@another-rex another-rex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@another-rex another-rex merged commit dc74cec into google:main May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cycle in requirements.txt causes infinite recursion
3 participants